import requestMock from "@/utils/requestMock"

import type {myroomContentDataType} from './model/typePractice'

//获取我的练习室数据请求
export const getMyRoomDataRequest = () => {
  return requestMock.get<any, myroomContentDataType>('/trainingCenter/plans/search/findByUserId')
}

//获取缓存数据请求
export const getMediaCacheDataRequest = () => {
  return requestMock.get<any, myroomContentDataType>('/userCenter/userVideoCacheSyncs/collect/findByType')
}

//获取收藏数据请求
export const getCollectionsDataRequest = () => {
  return requestMock.get<any, myroomContentDataType>('/moment/favoriteRecords/search/findByUserId')
}

//获取历史数据请求
export const getViewRecordsDataRequest = () => {
  return requestMock.get<any, myroomContentDataType>('/moment/viewRecords')
}